package com.common.model.exception;

/**
 * @author zhaoj
 * @create 2021/9/16
 */
public class NotAuthorizationException extends RuntimeException {

    private String errorMsg;

    public NotAuthorizationException(String errorMsg) {
        super("鉴权错误：");
        this.errorMsg = errorMsg;
    }

    @Override
    public String getMessage() {
        return super.getMessage() + errorMsg;
    }
}
